package fhp.hlhj.giantfold.presenter

import com.lzy.okgo.model.HttpParams
import fhp.hlhj.giantfold.interfaces.IFriendsEf
import fhp.hlhj.giantfold.javaBean.FriendsEFBean
import fhp.hlhj.giantfold.module.FriendsEfModule

/**
 * Created by Administrator on 2018\2\6 0006.
 */
class FriendsEfPresenter(private val iFriendsEf: IFriendsEf) : FriendsEfModule.onRespListener {
    private val module=FriendsEfModule()
    fun getFriendef(params: HttpParams){
        module.getFriendsEf(params,this)
    }
    fun setListView(){
        iFriendsEf.setListView()
    }
    override fun showLoading() {
        iFriendsEf.showLoading()
    }

    override fun onResp(friendsEFBean: FriendsEFBean) {
        iFriendsEf.onResp(friendsEFBean)
    }
}